﻿namespace Skymate
{
    using System;
    using System.Windows.Forms;

    using Abp;
    using Abp.Castle.Logging.Log4Net;

    using Castle.Facilities.Logging;

    using Skymate.Lyjt;

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            var bs = AbpBootstrapper.Create<LyjtModule>();

            bs.IocManager
                    .IocContainer
                    .AddFacility<LoggingFacility>(f => f.UseAbpLog4Net().WithConfig("Config/log4net.config"));
            
            bs.Initialize();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var form = bs.IocManager.Resolve<Form1>();
            Application.Run(form);
        }
    }
}
